/*
 * @Author: 李苏皖 onceseo@163.com
 * @Date: 2025-08-30 21:00:15
 * @LastEditors: 李苏皖 onceseo@163.com
 * @LastEditTime: 2025-09-03 21:23:58
 * @FilePath: \zygj-pc\src\main.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Vue from 'vue';
import store from './store/store';
import './assets/css/reset.css';
import './assets/css/common.less';
import './assets/css/element.less';
import './assets/css/main.less';
import 'font-awesome/css/font-awesome.min.css';
import './assets/iconfont/iconfont.css';
import App from './App.vue';
import router from './router/index';
import rules from './utils/formValidator.js';
import async from './utils/asynchronization.js';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import staticData from './utils/staticData';
import url from './utils/url';
import { get, post, postFile } from './utils';
import * as echarts from 'echarts';
import localforage from 'localforage';
const EventBus = new Vue();
const excelDB = localforage.createInstance({ name: 'excelDB', storeName: 'excelFiles' });
Vue.prototype.$echarts = echarts;
Vue.use(ElementUI);
Vue.prototype.$staticData = staticData;
Vue.prototype.$url = url;
Vue.prototype.$excelDB = excelDB;
Vue.prototype.$api = { get, post, postFile };
Vue.prototype.$rules = rules;
Vue.prototype.$bus = EventBus;
Vue.prototype.$async = async;
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
